package api

import (
	"github.com/unidoc/unioffice/document"
	"org.knight/data"
)

type Context struct {
	E           *Event
	IE          *data.InfoElement
	SpecName    string
	SpecVersion string
	SpecId      uint
	ReadyQueue  chan data.InfoElement
}

type Handler interface {
	Handle(c *Context)
}

type TableHandler interface {
	Handle(table document.Table)
}
type SpecHandler interface {
	HandleStart(c *Context)

	HandleEnd(c *Context)
}